﻿<%@ Control Language="C#" EnableViewState="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>

<script language="javascript" type="text/javascript">
    var selectArray = new Array();
    
    function SelectAll(isSelectAll)
    {
        var element = document.getElementsByTagName("input");
        selectArray.length=0;
        
        for(var i=0;i<element.length;i++)
        {
            if(element[i].type=="checkbox")
            {
                element[i].checked=isSelectAll;
                
                if(isSelectAll)
                    selectArray.push(element[i].id);
            }
        }
    }
    
    function DeleteData()
    {
        var element = document.getElementsByTagName("input");
        selectArray.length=0;
        
        for(var i=0;i<element.length;i++)
        {
            if(element[i].type=="checkbox" &&element[i].checked)
            {
                selectArray.push(element[i].id);
            }
        }
        if(selectArray.length==0)
            return false;
        else
        {
            return window.confirm("确认删除所选的数据?");
        }
    }
    
</script>

<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png);
    margin-top: 1px">
    <tr>
        <td valign="middle" height="30">
            <font id="Font1" style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left;
                color: black; text-indent: 1em;" runat="server">新增面积补偿款情况 </font>
        </td>
    </tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" align="center" class="window_tab_list"
    style="width: 98%; margin: 20px 0 10px 0; line-height: 35px; text-align: center;">
    <tr style="height: 35px">
        <td align="right">
            缴款人：
        </td>
        <td align="left">
            <asp:TextBox ID="txt_person" runat="server" Width="80px"></asp:TextBox>
        </td>
        <td align="right">
            缴款金额：
        </td>
        <td align="left">
            <asp:TextBox ID="txt_money" runat="server" Width="80px"></asp:TextBox>
        </td>
        <td align="right">
            身份证号：
        </td>
        <td align="left">
            <asp:TextBox ID="txt_Identfid" runat="server" Width="80px"></asp:TextBox>
        </td>
        <td align="right">
            单据编号：
        </td>
        <td align="left">
            <asp:TextBox ID="txt_number" runat="server" Width="80px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td align="right">
            缴款时间大于等于：
        </td>
        <td align="left">
            <CBW:MPCalendar ID="cd_JkStart" runat="server" Style="width:80px;" />
        </td>
        <td align="right">
            缴款时间小于等于：
        </td>
        <td align="left">
            <CBW:MPCalendar ID="cd_JkEnd" runat="server" Style="width:80px;" />
        </td>
        <td align="right">
            兑付时间大于等于：
        </td>
        <td align="left">
            <CBW:MPCalendar ID="cd_DfStart" runat="server" Style="width:80px;" />
        </td>
        <td align="right">
            兑付时间小于等于：
        </td>
        <td align="left">
            <CBW:MPCalendar ID="cd_DfEnd" runat="server" Style="width:80px;" />
        </td>
    </tr>
    <tr>
        <td>
            兑付情况
            <asp:DropDownList ID="ddl兑付情况" runat="server">
                <asp:ListItem Text="" Value=""></asp:ListItem>
                <asp:ListItem Text="未兑付" Value="0"></asp:ListItem>
                <asp:ListItem Text="已兑付" Value="1"></asp:ListItem>
            </asp:DropDownList>
        </td>
        <td colspan="7" align="center">
            <asp:Button ID="btnQuery" runat="server" Text="查询" />&nbsp;&nbsp;
            <input type="button" value="重置" onclick='javascript:window.location.href=location.href;' />&nbsp;&nbsp;
            <input type="button" value="新增" onclick="javascript:window.location.href=('ZJ_XZMJBCJInfo.aspx?id=&flag=basic');" />
        </td>
    </tr>
</table>
<center>
    <CBW:CustomGridView ShowItemNumber="false" AutoGenerateColumns="false" ID="CustomGridView1" ShowGridViewSelect="MultiSelect"
        runat="server" AllowPaging="true" AllowSorting="false" SkinID="List" CustomSortExpression=""
        HideTextLength="20" ShowCmpAndCancel="False" ShowHideColModel="None" Width="800px" CustomGridViewStyle="text-align: center;" 
        CssClass="window_tab_list" CustomGridViewClass="window_tab_list_fst">
        <Columns>
            <asp:BoundField DataField="单据编号" HeaderText="单据编号" />
            <asp:BoundField DataField="缴纳人" HeaderText="缴纳人" />
            <asp:BoundField DataField="缴纳金额" HeaderText="缴纳金额" HtmlEncode="False" DataFormatString="{0:N}" />
            <asp:BoundField DataField="缴纳时间" HeaderText="缴纳时间" DataFormatString="{0:yyyy-MM-dd}"
                HtmlEncode="False" />
            <asp:BoundField DataField="身份证号" HeaderText="身份证号" />
            <asp:BoundField DataField="兑付时间" HeaderText="兑付时间" DataFormatString="{0:yyyy-MM-dd}"
                HtmlEncode="False" />
            <asp:BoundField DataField="缴纳银行" HeaderText="缴纳银行" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <a href='ZJ_XZMJBCJInfo.aspx?id=<%#Eval("ID") %>&flag=basic'>编辑</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </CBW:CustomGridView>
    <table border="1" width="97%" cellpadding="0" cellspacing="0" class="window_tab_list">
        <tr>
            <td>
                <asp:Label ID="lbjnje" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="BT_ALL" runat="server" Text="全选" OnClientClick="SelectAll(true);return false;" />&nbsp;
                <asp:Button ID="bt_cancel" runat="server" Text="取消" OnClientClick="SelectAll(false);return false;" />&nbsp;
                <asp:Button runat="server" ID="bt_delete" Text="删除" />
            </td>
        </tr>
    </table>
</center>
